package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class GoodsQrcode implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * ID       db_column: id 
     */	
	private String id;
    /**
     * 商品id       db_column: goods_id
     */
	private String goodsId;
    /**
     * 用户id       db_column: user_id
     */
	private String userId;
    /**
     * 二维码       db_column: qrcode
     */
	private String qrcode;
    /**
     * 分享时间       db_column: create_date
     */
	private java.util.Date createDate;
	//columns END

	public GoodsQrcode(){
	}

	public GoodsQrcode(
		String id
	){
		this.id = id;
	}

	public void setId(String value) {
		this.id = value;
	}

	public String getId() {
		return this.id;
	}
	public void setGoodsId(String value) {
		this.goodsId = value;
	}

	public String getGoodsId() {
		return this.goodsId;
	}
	public void setUserId(String value) {
		this.userId = value;
	}

	public String getUserId() {
		return this.userId;
	}
	public void setQrcode(String value) {
		this.qrcode = value;
	}

	public String getQrcode() {
		return this.qrcode;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof GoodsQrcode == false) return false;
		if(this == obj) return true;
		GoodsQrcode other = (GoodsQrcode)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

